import request from '@/utils/request'

// 遗失率
export function getLose(data) {
  return request({
    url: '/daily/workOrderManagement/lossRate',
    method: 'post',
    data
  })
}

// 近七天回货趋势
export function getReturnWeek(type) {
  return request({
    url: `/daily/workOrderManagement/returnBarLineEcharts/${type}`,
    method: 'get'
  })
}

// 今日回货
export function getReturnToday() {
  return request({
    url: '/daily/workOrderManagement/todayReturnOfGoods',
    method: 'get'
  })
}

// 各频次回货量
export function getReturnEvery() {
  return request({
    url: '/daily/workOrderManagement/variousReturnOfGoods',
    method: 'get'
  })
}

// 工单管理
export function getWorkOrder() {
  return request({
    url: '/daily/workOrderManagement/workOrderManagement',
    method: 'get'
  })
}
